package models;

import play.db.jpa.*;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: TOSHIBA
 * Date: 17/03/12
 * Time: 14:00
 * To change this template use File | Settings | File Templates.
 */
@Entity
public class UserProfile extends Model {
    public String firstName;
    public String middleName;
    public String lastName;
    public String title;

    public String city;
    public String street;
    public String streetNumber;
    public String zipcode;

    public Date createdOn;
    public Date deletedOn;

    @ManyToOne
    public User createdBy;

    @ManyToOne
    public User deletedBy;


    @ManyToOne
    public Country country;

    @Override
    public String toString() {
        return this.title+" "+this.firstName+" "+this.middleName+" "+this.lastName;    //To change body of overridden methods use File | Settings | File Templates.
    }
}
